// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.

@use '~@mozilla-protocol/core/protocol/css/includes/lib' as *;
@use '~@mozilla-protocol/core/protocol/css/components/forms/form';
@use '~@mozilla-protocol/core/protocol/css/components/forms/field';
@use '~@mozilla-protocol/core/protocol/css/components/forms/choice';
@use '~@mozilla-protocol/core/protocol/css/components/forms/status';
@use '~@mozilla-protocol/core/protocol/css/components/forms/set';

// * -------------------------------------------------------------------------- */
// Newsletter Form

.mzp-c-form-header {
    @include text-title-md;
    text-align: center;
}

.mzp-c-form-subtitle {
    @include text-body-lg;
    font-weight: normal;
    margin-bottom: $spacing-2xl;
    text-align: center;
}

.mzp-c-newsletter-form {
    margin: $layout-xl 0;

    input[type='email'],
    select {
        width: 100%;
    }

    .mzp-c-form-submit {
        margin: $spacing-2xl 0;
    }

    button[type='submit'] {
        display: block;
        margin: 0 auto;
    }

    label {
        @include text-body-md;
    }

    fieldset {
        margin: $spacing-2xl 0 $spacing-xl;
    }

    legend {
        @include text-body-md;
        font-family: var(--body-font-family);
    }
}

.vpn-invite-platform-options {
    .mzp-u-inline {
        font-weight: normal;
    }

    input[type='checkbox'] {
        margin-bottom: $spacing-lg;
    }

    @supports (display: grid) {

        @media #{$mq-md} {
            display: grid;
            grid-gap: $spacing-xl;
            grid-template-columns: repeat(2, 1fr);

            input[type='checkbox'] {
                margin-bottom: 0;
            }
        }
    }
}

.vpn-invite-privacy-policy {
    margin: $spacing-xl 0;
}

.vpn-invite-success {
    margin: $layout-xl 0;
    min-height: 400px;
}

.vpn-invite-privacy {
    @include text-body-sm;
    text-align: center;
}
